<template>
  <div class="wrapper">
    <swiper :options="swiperOptions">
      <swiper-slide v-for="item in swiperList" :key="item.id">
          <img class="swiper-img" :src="item.imgUrl" alt="">
      </swiper-slide>
      <div class="swiper-pagination" slot="pagination"></div>
    </swiper>
  </div>
</template>

<script>
export default {
  name: "HomeSwiper",
  data(){
      return{
          swiperOptions:{
            pagination:'.swiper-pagination',
            loop:true,
            autoplay:3000,

          },
          swiperList:[
            {
              id:1,
              imgUrl:require('../../assets/swiper-images/001.png')
            },
            {
              id:2,
              imgUrl:require('../../assets/swiper-images/002.png')
            },
            {
              id:3,
              imgUrl:require('../../assets/swiper-images/003.png')
            }
            ]
      }
  }
};
</script>

<style scoped>
    .wrapper{
      overflow:hidden;
      width: 100%;
      height: 100%;
      /* padding: .5rem; */
    }
    .swiper-img{
      width: 100%;
    }
</style>